package com.joinlabs.entity;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

public class Weibo {
    private Long weiboId;
    
//    private Long userId;
//
//    private Long topicId;
//
//    private Long typeId;
//    
    private User user;

    private Topic topic;

    private Type type;

    private List<Img> imgList;

    private String weiboContent;

    private Date weiboTime;

    private String weiboJurisdiction;

    private String weiboSource;

    private Short weiboOriginal;

    private Long weiboZannum;

    private Long weiboCommentnum;

    private Long weiboForwardnum;

    private Long weiboCollectnum;

	public Long getWeiboId() {
		return weiboId;
	}

	public void setWeiboId(Long weiboId) {
		this.weiboId = weiboId;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Topic getTopic() {
		return topic;
	}

	public void setTopic(Topic topic) {
		this.topic = topic;
	}

	public Type getType() {
		return type;
	}

	public void setType(Type type) {
		this.type = type;
	}

	public List<Img> getImgList() {
		return imgList;
	}
	public int getImgLength() {
		return imgList.size();
	}
	public void setImgList(List<Img> imgList) {
		this.imgList = imgList;
	}

	public String getWeiboContent() {
		return weiboContent;
	}

	public void setWeiboContent(String weiboContent) {
		this.weiboContent = weiboContent;
	}
	

	public Date getWeiboTime() {
		return weiboTime;
	}

	public void setWeiboTime(Date weiboTime) {
		this.weiboTime = weiboTime;
	}
	//修改日期格式
//	SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
//	public void setWeiboTimestr(Date weiboTime) {
//		this.weiboTime = weiboTime;
//	}

	public String getWeiboJurisdiction() {
		return weiboJurisdiction;
	}

	public void setWeiboJurisdiction(String weiboJurisdiction) {
		this.weiboJurisdiction = weiboJurisdiction;
	}

	public String getWeiboSource() {
		return weiboSource;
	}

	public void setWeiboSource(String weiboSource) {
		this.weiboSource = weiboSource;
	}

	public Short getWeiboOriginal() {
		return weiboOriginal;
	}

	public void setWeiboOriginal(Short weiboOriginal) {
		this.weiboOriginal = weiboOriginal;
	}

	public Long getWeiboZannum() {
		return weiboZannum;
	}

	public void setWeiboZannum(Long weiboZannum) {
		this.weiboZannum = weiboZannum;
	}

	public Long getWeiboCommentnum() {
		return weiboCommentnum;
	}

	public void setWeiboCommentnum(Long weiboCommentnum) {
		this.weiboCommentnum = weiboCommentnum;
	}

	public Long getWeiboForwardnum() {
		return weiboForwardnum;
	}

	public void setWeiboForwardnum(Long weiboForwardnum) {
		this.weiboForwardnum = weiboForwardnum;
	}

	public Long getWeiboCollectnum() {
		return weiboCollectnum;
	}

	public void setWeiboCollectnum(Long weiboCollectnum) {
		this.weiboCollectnum = weiboCollectnum;
	}

	@Override
	public String toString() {
		return "Weibo [weiboId=" + weiboId + ", user=" + user + ", topic=" + topic + ", type=" + type + ", imgList="
				+ imgList + ", weiboContent=" + weiboContent + ", weiboTime=" + weiboTime + ", weiboJurisdiction="
				+ weiboJurisdiction + ", weiboSource=" + weiboSource + ", weiboOriginal=" + weiboOriginal
				+ ", weiboZannum=" + weiboZannum + ", weiboCommentnum=" + weiboCommentnum + ", weiboForwardnum="
				+ weiboForwardnum + ", weiboCollectnum=" + weiboCollectnum + "]";
	}

    
}